﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSystem.Doamins
{
    /// <summary>
    /// 公司表	
    /// </summary>
    [Table("Corporation")]
    public class Corporation
    {
        [Key]
        [Display(Name = "自增标识列")]
        public int Id { get; set; }

        [Required]
        [Display(Name = "公司名称")]
        [Column(TypeName = "nvarchar(50)")]
        public string? CompanyName { get; set; }

        [Required]
        [Display(Name = "省")]
        public int Province { get; set; }

        [Required]
        [Display(Name = "市")]
        public int City { get; set; }

        [Required]
        [Display(Name = "县")]
        public int County { get; set; }

        [Required]
        [Display(Name = "成立时间")]
        public DateTime FoundingTime { get; set; }

        [Required]
        [Display(Name = "公司简介")]
        [Column(TypeName = "nvarchar(500)")]
        public string? CampanyIntro { get; set; }

        [Required]
        [Display(Name = "公司图片")]
        [Column(TypeName = "nvarchar(500)")]
        public string? CampanyImage { get; set; }

        [Required]
        [Display(Name = "溯源批次号")]
        public string BatchId { get; set; }

        [Required]
        [Display(Name = "养殖负责人")]
        [Column(TypeName = "nvarchar(30)")]
        public string? Principal { get; set; }

        [Required]
        [Display(Name = "养殖数量")]
        public int Quantity { get; set; }

        [Required]
        [Display(Name = "生产小组")]
        [Column(TypeName = "nvarchar(30)")]
        public int Group { get; set; }

        [Required]
        [Display(Name = "生产小组负责人")]
        [Column(TypeName = "nvarchar(30)")]
        public int GroupPrincipal { get; set; }
    }
}
